package com.crm.pojo;

import com.alibaba.fastjson.annotation.JSONField;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the PAY database table.
 */
@Entity
@NamedQuery(name = "Pay.findAll", query = "SELECT p FROM Pay p")
public class Pay implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @SequenceGenerator(initialValue = 1, allocationSize = 1, name = "PAY_PAYID_GENERATOR", sequenceName = "SEQ3")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "PAY_PAYID_GENERATOR")
    @Column(name = "PAY_ID")
    private Long payId;

    @Column(name = "FK_PAY_EMPNO")
    private BigDecimal fkPayEmpno;

    @Column(name = "FK_PAY_PLANING_PAY_ID")
    private BigDecimal fkPayPlaningPayId;

    @JSONField(format = "yyyy-MM-dd")
    @Temporal(TemporalType.DATE)
    @Column(name = "PAY_DATE")
    private Date payDate;

    @Column(name = "PAY_IS_DEL")
    private String payIsDel;

    @Column(name = "PAY_MONEY")
    private BigDecimal payMoney;

    public Pay() {
    }

    public Long getPayId() {
        return this.payId;
    }

    public void setPayId(Long payId) {
        this.payId = payId;
    }

    public BigDecimal getFkPayEmpno() {
        return this.fkPayEmpno;
    }

    public void setFkPayEmpno(BigDecimal fkPayEmpno) {
        this.fkPayEmpno = fkPayEmpno;
    }

    public BigDecimal getFkPayPlaningPayId() {
        return this.fkPayPlaningPayId;
    }

    public void setFkPayPlaningPayId(BigDecimal fkPayPlaningPayId) {
        this.fkPayPlaningPayId = fkPayPlaningPayId;
    }

    public Date getPayDate() {
        return this.payDate;
    }

    public void setPayDate(Date payDate) {
        this.payDate = payDate;
    }

    public String getPayIsDel() {
        return this.payIsDel;
    }

    public void setPayIsDel(String payIsDel) {
        this.payIsDel = payIsDel;
    }

    public BigDecimal getPayMoney() {
        return this.payMoney;
    }

    public void setPayMoney(BigDecimal payMoney) {
        this.payMoney = payMoney;
    }

}